//
//  BaseRecordButtonView.m
//  Uhomebk
//
//  Created by XXJ on 16/1/8.
//  Copyright © 2016年 com.segi. All rights reserved.
//

#import "BaseRecordButtonView.h"

@implementation BaseRecordButtonView

-(void)touchesBegan:(NSSet<UITouch *> *)touches withEvent:(UIEvent *)event
{
    [self.fundelegate BaseRecordButtonStartRecord:self];
}

-(void)touchesCancelled:(NSSet<UITouch *> *)touches withEvent:(UIEvent *)event
{
    [self.fundelegate BaseRecordButtonStopRecord:self];
}

-(void)touchesEnded:(NSSet<UITouch *> *)touches withEvent:(UIEvent *)event
{
    [self.fundelegate BaseRecordButtonStopRecord:self];
}

//-(void)touchesMoved:(NSSet<UITouch *> *)touches withEvent:(UIEvent *)event
//{
//    UITouch *touch = [touches anyObject];
//    CGPoint location = [touch locationInView:self];
//    if (firstPoint==0)
//    {
//    }
//    
//    [self.fundelegate BaseRecordButtonStopRecord:self];
//}

@end
